Ext.namespace("Ext.milan.pagejs.checkTimeSelect");

Ext.milan.pagejs.checkTimeSelect.checkTime = function() {
	var form = $("_frm_delay_document");
	var date = new Date();
	var now = "";
	now = date.getFullYear() + "";
	var month = "0" + (date.getMonth() + 1);
	month = month.substr(month.length - 2);
	now = now + month + "";
	var today = "0" + (date.getDate());
	today = today.substr(today.length - 2);
	now = now + today;
	if (form.delay_archive_date.value == now
			|| form.delay_archive_date.value < now) {
		Milan.commonutils.createDelayNotifyModel("提示信息", "延期时间应该大于今天！");
		form.delay_archive_date.value = "";
	}
};


Ext.milan.pagejs.checkTimeSelect.checkBtn = function(eleValue,isTransPage) {
	var form = null;	
	if (isTransPage) 
		form =	$("trans_archive_form_formid");
	else 
		form =	$("_frm_delay_document");
	
	if( form != null){
		if (eleValue == 0) {
			$('selectDelayDay').show();
		}
		else {
			$('selectDelayDay').hide();
		}
	}
};